Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NDocumentView<TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings> Class / LoadFromStream Method


In This Topic
    LoadFromStream Method (NDocumentView<TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings>)
    In This Topic
    Loads the document from the specified stream.
    Syntax
    'Declaration
     
    
    Public Sub LoadFromStream( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal documentFormat As TDocFormat, _
       Optional ByVal loadSettings As TDocLoadSettings, _
       Optional ByVal progress As NProgress _
    ) 
    'Usage
     
    
    Dim instance As NDocumentView(Of TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings)
    Dim stream As System.IO.Stream
    Dim documentFormat As TDocFormat
    Dim loadSettings As TDocLoadSettings
    Dim progress As NProgress
     
    instance.LoadFromStream(stream, documentFormat, loadSettings, progress)
    public void LoadFromStream( 
       System.IO.Stream stream,
       TDocFormat documentFormat,
       TDocLoadSettings loadSettings,
       NProgress progress
    )

    Parameters

    stream
    documentFormat
    loadSettings
    progress
    Exceptions
    ExceptionDescription
    The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
    Represents errors that occur during application execution.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also